package com.woniuxy.ams.dao;

import com.woniuxy.ams.entity.*;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.List;

/**
 * 部门考核列表dao层
 */
public interface ExamineListDao {
    List<ExamineList> findAll(int departmentId);

    int insert(ExamineList examineList);

    int updateExamineList(ExamineList examineList);

    int deleteExamineList(ExamineList examineList);

    ExamineList findOne(int id);

    void insertRater(ArrayList<Rater> arrayList);

    void deleteRater(List<Integer> list);

    List<Integer> findExaminelistAssessment2(Integer id);

    void deleteExaminelistAssessment(Integer id);

    int updateScore(Rater rater);

    Rater findRater(Rater rater);

    List<ExamineList> findAllExamineList(ExamineListFormInline examineListFormInline);

    ExamineList findOneByExamineList(ExamineList examlineList);

    int insertExaminelistAssessment2(@Param("id1") Integer id1, @Param("list") List<TemplateAssess> list);

    List<RaterUser> findRaterUserByTemplateId(int templateId);

    int insertRater2(List<RaterUser> raterUsers);

    int updateStatus(ExamineList examineList);
}
